<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" import="java.util.*,com.model.Cal"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body bgcolor="pink">
		<%request.setCharacterEncoding("utf-8"); %>
		<jsp:useBean id="coco" class="com.model.Cal"></jsp:useBean>
		<jsp:setProperty property="a" name="coco" param="num1"/>
		<jsp:setProperty property="b" name="coco" param="num2"/>
		<jsp:setProperty property="type" name="coco" param="s"/>
		
		计算结果为:<%=coco.result() %>
</body>
</html>
